package com.mmal.example.threadLocal;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sigurHe
 * Date:2019/10/7.
 * Time:17:09.
 */
@RestController
@RequestMapping("/threadLocal")
public class ThreadLocalController {

    @RequestMapping("/test")
    public Long test(){
        return RequestHolder.getId();
    }
}
